package comun;

public class SigueSerie implements valorId_s, valorId_u {
	/**
	 * Lugar donde se almacena que capitulo sigue el usuario
	 * 
	 * tablaSigueCap
	 * 
	 * id_u, id_s
	 */

	private int id_u, id_s;

	public SigueSerie() {

		this.id_u = 0;
		this.id_s = 0;
	}

	public SigueSerie(int id_u, int id_s) {

		this.id_u = id_u;
		this.id_s = id_s;
	}

	@Override
	public int getId_u() {
		return id_u;
	}

	@Override
	public void setId_u(int id_u) {
		this.id_u = id_u;
	}

	@Override
	public int getId_s() {
		return id_s;
	}

	@Override
	public void setId_s(int id_s) {
		this.id_s = id_s;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id_s;
		result = prime * result + id_u;
		return result;
	}

	@Override
	public boolean equals(Object obj) {

		SigueSerie sSeie = (SigueSerie) obj;
		boolean dev = false;
		if (sSeie.getId_s() == this.id_s) {
			if (sSeie.getId_u() == this.id_u) {
				dev = true;
			}
		}
		return dev;
	}
}
